﻿@model AutomatedTestDataManagement.Models.PagesField

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>PagesField</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.PageFieldID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PageFieldID)
            @Html.ValidationMessageFor(model => model.PageFieldID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PageID, "Page")
        </div>
        <div class="editor-field">
            @Html.DropDownList("PageID", String.Empty)
            @Html.ValidationMessageFor(model => model.PageID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FieldID, "HTMLField")
        </div>
        <div class="editor-field">
            @Html.DropDownList("FieldID", String.Empty)
            @Html.ValidationMessageFor(model => model.FieldID)
        </div>

        <p>
            @Html.ActionLink("Create Fields", "Create", "HTMLField", new { model.PageID }, null);
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
